home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / MIDI_MAN / CMIDIINP.H < prev    next >
Text File  |  1992-03-07  |  1KB  |  33 lines

  1. //--- CMIDIInputPort.h --------------------------------------------------------
  2. // Copyright ⌐ Paul Ferguson, 1990, 1991, 1992.  All rights reserved.
  3. //
  4. // Description:
  5. //    Refer to the CMIDI Programmer's Manual for a complete desciption of
  6. //    these objects and methods.
  7. //    For use with THINK C 5.0 and the THINK Class Library.
  8. //
  9. //----------------------------------------------------------------------------
  10. #pragma once
  11. #include "CMIDIDataPort.h"
  12. #include "CMIDITimePort.h"
  13.  
  14. class CMIDIInputPort : public CMIDIDataPort
  15. {
  16. public:
  17.  
  18.             OSErr     IMIDIInputPort(
  19.                         StringPtr        theName,         // Pascal format, 31 char max
  20.                         OSType            thePortID,
  21.                         Boolean            theVisibleFlag,
  22.                         CMIDITimePort *    theTimePort,
  23.                         long            theOffset,        // Current, nothing, everything
  24.                         short            theBufSize,
  25.                         ProcPtr            theReadHook);
  26.     virtual    ProcPtr    GetReadHook(void);
  27.     virtual    void    SetReadHook(ProcPtr theReadHook);
  28.     virtual    void    Flush(void);
  29.     virtual    void    Poll(long offsetTime);
  30.     virtual    void    DiscardPacket(MIDIPacketPtr thePacket);
  31. };
  32.  
  33. // end of CMIDIInputPort.h